package com.caipos.actor.common.data.relation;

import com.baomidou.mybatisplus.annotation.TableName;
import com.caipos.actor.common.data.EntityType;
import com.fasterxml.jackson.databind.JsonNode;
import lombok.Builder;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName("relation")
@Builder
public class Relation implements Serializable {
    private static final long serialVersionUID = 1L;

    private String fromId;
    private EntityType fromType;
    private String toId;
    private EntityType toType;
    private EntityType relationTypeGroup;
    private String relationType;
    private JsonNode additionalInfo;
    private Long version;
}